<template>
  <h1>Page 导航</h1>
  <button @click="go_page">GoPage</button>
</template>

<script>
export default {
  name: "Page",
  methods: {
    go_page: function () {
      console.log('跳转 / 0')
      // 两种写法
      // this.$router.push('/')
      // this.$router.push({path: '/'})
      // 携带参数跳转
      // this.$router.push({path:'/news/123'})
      // this.$router.push({name: 'news', params: {id: '123456'}})
      this.$router.push({path:'/', query: {id: '123456'}})
    }
  }
}
</script>

<style scoped>

</style>